
SRC = $(wildcard *.c)
OBJ = $(patsubst %.c, $(ROOT_PATH)/obj/%.o, $(SRC))

LIB_PART = layers backends

DEPS := -I$(ROOT_PATH)/include \
		-I$(ROOT_PATH)/include/layers
		
.PHONY: $(LIB_PART)
all: $(LIB_PART) $(OBJ)

$(LIB_PART):
	$(MAKE) -C $@

$(OBJ): $(ROOT_PATH)/obj/%.o:%.c
	$(CC) $(CFLAGS) $(DEPS) -c $< -o $@
